package br.com.corsini.database;

import android.provider.BaseColumns;

/**
 * Created by jose.corsini on 13/01/14.
 */
public final class Treino extends DaoTableHelper{

    /**
     * http://developer.android.com/training/basics/data-storage/databases.html
     * http://fabrica.ms.senac.br/2013/06/criando-e-usando-banco-de-dados-em-uma-aplicacao-android/
     */


    public static enum Columns {
        COLUMN_NOME, COLUMN_DESCRICAO;

    }

    public static final String TABLE_NAME = "treino";
    public static final String COLUMN_TREINO_ID = "treinoid";

    public Treino() {
        super(TABLE_NAME, 4);
        addId(COLUMN_TREINO_ID);
        addColumn(Columns.COLUMN_NOME.toString(),"nome");
        addColumn(Columns.COLUMN_DESCRICAO.toString(),"descricao");
        createTable();
    }

}